package com.mybatis.lo.sqlnode;

import com.mybatis.lo.config.DynamicContext;
import lombok.AllArgsConstructor;

/**
 * 不带有`${}`的sql文本信息
 * @author zhangbh
 * 2023-06-09 20:05
 **/
@AllArgsConstructor
public class StaticTextSqlNode implements SqlNode {

    /**
     * sql文本信息
     */
    private final String sqlText;

    @Override
    public void apply(DynamicContext context) {
        context.append(sqlText);
    }
}
